﻿using System;

namespace diantou.web.ajax.enterprise
{
    /// <summary>
    /// 考试问题调用
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true)]
    class examQuestion : examHandle<examQuestion>
    {
        /// <summary>
        /// 添加考试问题
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Append(diantou.examDataAccess.examQuestion value, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            value.UserId = currentUser.Id;
            diantou.examDataAccess.tcpCall.examQuestion.append(value, onReturn);
        }
        /// <summary>
        /// 修改考试问题
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        public void Rework(diantou.examDataAccess.examQuestion value, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.examDataAccess.tcpCall.examQuestion.rework(value, currentUser.Id, onReturn);
        }
        /// <summary>
        /// 发布考试问题
        /// </summary>
        /// <param name="id"></param>
        /// <param name="onReturn"></param>
        public void Show(int id, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.examDataAccess.tcpCall.examQuestion.show(id, currentUser.Id, onReturn);
        }
        /// <summary>
        /// 考试问题过期
        /// </summary>
        /// <param name="id"></param>
        /// <param name="onReturn"></param>
        public void Expired(int id, Action<fastCSharp.net.returnValue<bool>> onReturn)
        {
            diantou.examDataAccess.tcpCall.examQuestion.expired(id, currentUser.Id, onReturn);
        }
        ///// <summary>
        ///// 考试问题过期
        ///// </summary>
        ///// <param name="ids"></param>
        ///// <param name="onReturn"></param>
        //public void BatchExpired(int[] ids, Action<fastCSharp.net.returnValue<int[]>> onReturn)
        //{
        //    diantou.examDataAccess.tcpCall.examQuestion.expired(ids, currentUser.Id, onReturn);
        //}
    }
}
